package com.ruoyi.pg.questionnaire.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.pg.questionnaire.domain.PgSurvey;
import com.ruoyi.pg.questionnaire.vo.PgSurveyVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 问卷Mapper接口
 *
 * @author Ming
 * @date 2025-08-22
 */
public interface PgSurveyMapper extends BaseMapper<PgSurvey> {

    Page<PgSurveyVo> queryList(Page<?> page, @Param("entity") PgSurveyVo entity);

    List<PgSurveyVo> queryList(@Param("entity") PgSurveyVo entity);

    PgSurveyVo queryById(@Param("id") Long id);

    Long selectIdByTempId(@Param("tempId") Long tempId);
}
